From: kleifgch <81602214+kleifgch@users.noreply.github.com> Date: Sun, 29 Dec 2024 03:07:25 +0000 (+0100) Subject: Call setDesktopFileName without `.desktop` suffix X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~161^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=5d36070d15627bf657a9b06b4878ce8d8212bbd8;p=nextcloud-desktop.git Call setDesktopFileName without `.desktop` suffix As clarified in [1], the method expects to be called without the suffix. [1] https://github.com/qt/qtbase/commit/0c5135a9dfa6140d23d86b001c3054891c22dcb9 Signed-off-by: kleifgch <81602214+kleifgch@users.noreply.github.com> --- diff --git a/src/gui/application.cpp b/src/gui/application.cpp index ab4d4159e..c5c0f7cb6 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -230,9 +230,7 @@ Application::Application(int &argc, char **argv) // setOrganizationName(QLatin1String(APPLICATION_VENDOR)); setOrganizationDomain(QLatin1String(APPLICATION_REV_DOMAIN)); - QString desktopFileName = QString(QLatin1String(LINUX_APPLICATION_ID) - + QLatin1String(".desktop")); - setDesktopFileName(desktopFileName); + setDesktopFileName(QString(LINUX_APPLICATION_ID)); setApplicationName(_theme->appName()); setWindowIcon(_theme->applicationIcon());